package org.neuedu.chapter02_0610;

public class Practice01 {
    public static void main(String[] args) {
        // x y 值互换
        int x = 10;
        int y = 20;
        int z = y;
        y = x;
        x = z;
        System.out.println(x);
        System.out.println(y);

        int a = 3;
        int b = 5;
        a = a + b; // a=8 b=5
        b = a - b; // 8-5=3 b=3
        a = a - b; // 8-3=5 a=5
        System.out.println(a);
        System.out.println(b);
    }
}
